<?php
session_start();
session_destroy(); 
$_SESSION = array(); // Destruction des variables de session
header('Location:../controller/main.php');
exit;
?>